﻿@using Resources;
@{
    Layout = "~/Views/Shared/Layaout/general/_LayoutGeneralV2.cshtml";
}
<script type="text/javascript" src="@Url.Content(@properties.mantePersonaJS)"></script>
<div id="tituloOpcion">@ViewBag.TITULO</div>
<script type="text/javascript">
    $(function () {
        setAutoAyudaEmpresaClick("#nIdePersona", "#nIdeCodPaisDoc", "#nIdeTipoDocum", "#vNumDocum", "#vNombresPersona", "/AutoAyuda/ListaPersonaAuto", "1", "#botonClic");
        setAutoAyudaEmpresaClick("#nIdePersona", "#nIdeCodPaisDoc", "#nIdeTipoDocum", "#vNombresPersona", "#vNumDocum", "/AutoAyuda/ListaPersonaAuto", "2", "#botonClic");        
        inicioPopPupModal("#detalle2", 450, 650, "LISTADO DE PERSONAS ENCONTRADAS");
        inicioPopPupModal("#detalle3", 450, 800, "DATOS DE LA PERSONA PARA ACTUALIZAR");
    });    
</script>
<div id="divCabeceraInterno">
    <table style="width: 700px;" class="tblCab" border="1">
        <thead>
            <tr>
                <th>País Emisor</th>
                <th>Tipo Documento</th>
                <th>Núm. Documento</th>
                <th>Nombre de la Persona Natural</th>
                <th><input type="button" value="Nueva" onclick="javascript: regPersonaNaturalPop('0',this);" /></th>
            </tr>
            <tr>
            <td>@Html.DropDownList("nIdeCodPaisDoc", (IEnumerable<SelectListItem>)ViewBag.PaisEmisor)</td>
            <td>@Html.DropDownList("nIdeTipoDocum", (IEnumerable<SelectListItem>)ViewBag.TipoDocIdent, "--Seleccione--")</td>
            <td>@Html.TextBox("vNumDocum", null, new { style = "width:100px;", maxlength = 20 })</td>
            <td class="center">
                <table class="tblCero">
                    <tr>
                        <td>@Html.TextBox("vNombresPersona", null, new {style = "width:280px;", maxlength = 120 })</td>
                        <td><img src="@Url.Content("~/images/buscar.gif")" class="lupita2" alt="EDITAR USUARIO" onclick="javascript:buscarEmpresaMante('#detalle2');"/><input type="hidden" id="nIdePersona" /></td>
                    </tr>
                </table>
            </td>
            <td><input type="button" value="Consultar" onclick="javascript: listarPersonaMante('#detalle1');" id="botonClic"/></td>
        </tr>
        </thead>
    </table>
</div>
<br /><br />
<div id="detalle1"></div>
<div id="detalle2"></div>
<div id="detalle3"></div> 